/*
 * Die.cpp
 *
 *  Created on: May 26, 2010
 *      Author: rc
 */

#include "headers/Die.h"
#include <cstdlib>
#include <time.h>
#include <assert.h>

Die::Die() {
    srand(time(NULL));
}

Die::~Die() {	
}

int Die::roll() {
    int val = (rand() % 6 +1);
    assert(val <= 6 && val >= 1);
    return val;
}